import type { ProfileParamsType } from '@/types/login'
import type { profileType } from '@/types/profile'
import { http } from '@/utils/http'

export const getMemberProfileHttp = ()=>{

  return http<profileType>({
    method:'GET',
    url:'/member/profile'
  })
}

/**
 * 修改个人信息
 */

export const updateProfileHttp = (data:ProfileParamsType)=>{
  return  http<profileType>({
    url:'/member/profile',
    method:"PUT",
    data,
  })
}
